<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.xuya.entity.*" %>
<%@ page import="com.xuya.dao.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'edit.jsp' starting page</title>
  </head>
  
  <body>
  <% 
  	Product p = (Product)request.getAttribute("product"); 
   %>
   <form action="new.jspx" method ="post">
   <input type = "hidden" name="id" value ="<%=p.getId()%>"/>
   	商品名称：<input type = "text" name="prodname" value ="<%=p.getName()%>"/>
   	商品价格：<input type = "text" name="prodprice" value ="<%=p.getPrice()%>"/>
   		<input type = "submit" value = "提交"/>
   </form>
  </body>
</html>
